# $NetBSD: Makefile,v 1.3 2012/10/03 21:32:47 asau Exp $
#

VERSION=	0.2.3
DISTNAME=	opensfx-${VERSION}-all
PKGNAME=	openttd-${DISTNAME:S/-all$//}
CATEGORIES=	games
MASTER_SITES=	http://binaries.openttd.org/extra/opensfx/${VERSION}/
EXTRACT_SUFX=	.zip

MAINTAINER=	elentirmo.gilgalad@gmail.com
HOMEPAGE=	http://openttd.org/
COMMENT=	Free and open source sound data files for the game OpenTTD
#LICENSE=	Creative Commons Sampling Plus 1.0

INSTALLATION_DIRS=	share/openttd/data

WRKSRC=		${WRKDIR}/opensfx-${VERSION}
USE_LANGUAGES=	# none

NO_BUILD=	YES
NO_CONFIGURE=	YES

OPENTTD_DATADIR=	${DESTDIR}${PREFIX}/share/openttd/data

do-install:
# the readme is already bumped to the single tar version
# probably this method will work soon
#	 	${INSTALL_DATA} ${WRKSRC}/${DISTNAME:S/-all$//}.tar \
#  		${DESTDIR}${PREFIX}/share/openttd/data
	${INSTALL_DATA} ${WRKSRC}/*.cat \
		${OPENTTD_DATADIR}
	${INSTALL_DATA} ${WRKSRC}/*.obs \
	   	${OPENTTD_DATADIR}

.include "../../mk/bsd.pkg.mk"
